home *** CD-ROM | disk | FTP | other *** search
/ The CICA Windows Explosion! / The CICA Windows Explosion! - Disc 2.iso / programr / appsrcs.zip / MORSETUP.ZIP / APPEXIT.C < prev    next >
C/C++ Source or Header  |  1993-05-06  |  763b  |  37 lines

  1. #define STRICT
  2. #include <windows.h>
  3. #include <windowsx.h>
  4. #include "morsetup.h"
  5.  
  6. /*-------------------------------------------------------------------------*/
  7. BOOL WINAPI ExitDlgProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam)
  8.     {
  9.     switch(message)
  10.     {
  11.     case WM_INITDIALOG:
  12.         return TRUE;
  13.  
  14.     case WM_COMMAND:
  15.         switch(wParam)
  16.         {
  17.         case IDEXIT_OK:
  18.             EndDialog(hDlg, 0);
  19.             IniSave();
  20.             SendMessage(hWnd, WM_DESTROY, 0, 0);
  21.             return TRUE;
  22.  
  23.         case IDEXIT_NO:
  24.             EndDialog(hDlg, 0);
  25.             SendMessage(hWnd, WM_DESTROY, 0, 0);
  26.             return TRUE;
  27.  
  28.         case IDEXIT_CANCEL:
  29.             EndDialog(hDlg, 0);
  30.             InvalidateRect(hWnd, NULL, 0);
  31.             return TRUE;
  32.         }
  33.         break;
  34.     }
  35.     return FALSE;
  36.     }
  37.